const express = require('express')
const app = express();
const cars = [
    {id:"1",name:'宝马',money:200000},
    {id:"2",name:'奔驰',money:250000},
    {id:"3",name:'奥迪',money:300000},
    {id:"4",name:'劳斯莱斯',money:1000000}
]

app.get('/Cars',(req,res)=>{
    res.send(cars);
});

app.listen(5001,()=>console.log('服务器Server2已启动，请尝试使用5001端口访问'));